package br.com.lumis.saas.service.consumerclient.control;

import java.io.IOException;

import lumis.doui.control.script.ScriptControl;
import lumis.portal.PortalException;

public class PagePersonalizationJQueryScriptControl extends ScriptControl {

	@Override
	public void setRenderData() throws PortalException {
		String scriptNodeText = "<script type=\"text/javascript\" src=\"saas/js/lib/jquery.js\"></script> ";
		scriptNodeText+="<script type=\"text/javascript\" src=\"saas/js/lumisadmin.js\"></script> ";
		try {
			douiContext.getRenderResponse().getBeforeWriter().print(
					scriptNodeText, "JQuery");
		} catch (IOException e) {
			new PortalException(e.getMessage(), e);
		}
	}

}